/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entities1;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author takamflore
 */
@Embeddable
public class NotifyPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(nullable = false)
    private int iDNotification;
    @Basic(optional = false)
    @NotNull
    @Column(nullable = false)
    private int iDEvent;
    @Basic(optional = false)
    @NotNull
    @Column(nullable = false)
    private int iDInvitation;

    public NotifyPK() {
    }

    public NotifyPK(int iDNotification, int iDEvent, int iDInvitation) {
        this.iDNotification = iDNotification;
        this.iDEvent = iDEvent;
        this.iDInvitation = iDInvitation;
    }

    public int getIDNotification() {
        return iDNotification;
    }

    public void setIDNotification(int iDNotification) {
        this.iDNotification = iDNotification;
    }

    public int getIDEvent() {
        return iDEvent;
    }

    public void setIDEvent(int iDEvent) {
        this.iDEvent = iDEvent;
    }

    public int getIDInvitation() {
        return iDInvitation;
    }

    public void setIDInvitation(int iDInvitation) {
        this.iDInvitation = iDInvitation;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) iDNotification;
        hash += (int) iDEvent;
        hash += (int) iDInvitation;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof NotifyPK)) {
            return false;
        }
        NotifyPK other = (NotifyPK) object;
        if (this.iDNotification != other.iDNotification) {
            return false;
        }
        if (this.iDEvent != other.iDEvent) {
            return false;
        }
        if (this.iDInvitation != other.iDInvitation) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.NotifyPK[ iDNotification=" + iDNotification + ", iDEvent=" + iDEvent + ", iDInvitation=" + iDInvitation + " ]";
    }
    
}
